package com.scy.hospitalmanager.mydemo;

import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @Author Jin_zuo_wei
 * @ClassName TestAycnDemo
 * @Date 2021-09-20-19:01
 * @PackageName com.scy.hospitalmanager.mydemo
 * @Description 多线程异步方法实现类
 * @Version 1.0.0
 */
@Slf4j
@Component
public class TestAycnDemo {
    private int outPutNum = 0;
//    @Async("taskExecutor")
    public void doAycn(){
        this.outPutNum+=1;

        log.info("输出："+this.outPutNum);
    }
}
